package com.time.company.utils;

import java.io.Closeable;
import java.io.IOException;

/**
 * IO流操作类
 *
 * Author: Created by deng on 2016/8/13.
 * E-mail: tx16bing@163.com
 */
public class CloseUtils {

    private CloseUtils(){

    }

    // 关闭IO流
    public static void close(Closeable closeable){
        if(closeable != null){
            try {
                closeable.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

}
